/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 * Description: adapter层重构
 * Author: ligang
 * Create: 2022-04-09
 */

#ifndef HCCL_INC_ADAPTER_ERROR_MANAGER_H
#define HCCL_INC_ADAPTER_ERROR_MANAGER_H

#include <string>
#include "log.h"
#include "adapter_error_manager_pub.h"

#ifndef HCCD
    using ErrContext = error_message::Context;
#else
    using ErrContext =  struct Context {
            uint64_t work_stream_id;
            std::string first_stage;
            std::string second_stage;
            std::string log_header;
        };
#endif

ErrContext hrtErrMGetErrorContext(void);
void hrtErrMSetErrorContext(ErrContext error_context);

#endif
